package com.lottery.game.core.modules.entity.game;

import com.lottery.game.common.BaseObject;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OrderBy;
import javax.persistence.Table;

import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@NoArgsConstructor
@AllArgsConstructor(access = AccessLevel.PRIVATE)
@Builder
@Getter
@Setter
@Table(name = "game_type")
public class GameType extends BaseObject {
    /**
     * 游戏类型编号
     */
    @Id
    @Column(name = "id")
    @GeneratedValue(generator = "JDBC")
    private String id;

    /**
     * 游戏类型编码
     */
    @Column(name = "code")
    private String code;

    /**
     * 游戏名称
     */
    @Column(name = "name")
    private String name;

    /**
     * 是否开放
     */
    @Column(name = "open")
    private Boolean open;

    /**
     * 排序
     */
    @Column(name = "sort")
    private Integer sort;

    /**
     * 备注
     */
    @Column(name = "remarks")
    private String remarks;

    /**
     * 创建者
     */
    @Column(name = "create_by")
    private String createBy;

    /**
     * 更新者
     */
    @Column(name = "update_by")
    private String updateBy;

    /**
     * 系统创建时间
     */
    @Column(name = "create_date")
    @OrderBy
    private Date createDate;

    /**
     * 系统更新时间
     */
    @Column(name = "update_date")
    private Date updateDate;

    /**
     * 数据是否删除 1是 0 不是
     */
    @Column(name = "del_flag")
    private String delFlag;
}
